var mongoose = require("mongoose");

//类别表(category)

var categorySchema = new mongoose.Schema({
  title: { type: String, required: true }, //标题
  index: { type: String, required: true } //索引
});

module.exports = mongoose.model("category", categorySchema);
